/**
 * 
 */
package com.wrsr.examsys.domain;

import java.io.Serializable;
import java.util.Date;

/**
 * @author <a href="mailto:2397431783@qq.com">wangruishun</a>
 *
 *         2015年5月8日
 */
public class Card implements Serializable {

	private static final long serialVersionUID = -1521240766628172189L;
	// 发帖人id
	private String fromId;
	// 发帖人名
	private String fromName;
	private String content;
	private Date createTime=new Date();
	// 目标id
	private String goalId;
	// id
	private Integer cardId;
	// 类型，帖子针对的类型
	private Integer type;
	// 发帖者类型0老师1学生
	private Integer fromType;
	private String title;
	private Integer deleteFlag=1;

	/**
	 * @return the deleteFlag
	 */
	public Integer getDeleteFlag() {
		return deleteFlag;
	}

	/**
	 * @param deleteFlag the deleteFlag to set
	 */
	public void setDeleteFlag(Integer deleteFlag) {
		this.deleteFlag = deleteFlag;
	}

	/**
	 * @return the title
	 */
	public String getTitle() {
		return title;
	}

	/**
	 * @param title the title to set
	 */
	public void setTitle(String title) {
		this.title = title;
	}

	/**
	 * @return the fromType
	 */
	public Integer getFromType() {
		return fromType;
	}

	/**
	 * @param fromType the fromType to set
	 */
	public void setFromType(Integer fromType) {
		this.fromType = fromType;
	}

	/**
	 * @return the fromId
	 */
	public String getFromId() {
		return fromId;
	}

	/**
	 * @param fromId
	 *            the fromId to set
	 */
	public void setFromId(String fromId) {
		this.fromId = fromId;
	}

	/**
	 * @return the fromName
	 */
	public String getFromName() {
		return fromName;
	}

	/**
	 * @param fromName
	 *            the fromName to set
	 */
	public void setFromName(String fromName) {
		this.fromName = fromName;
	}

	/**
	 * @return the content
	 */
	public String getContent() {
		return content;
	}

	/**
	 * @param content
	 *            the content to set
	 */
	public void setContent(String content) {
		this.content = content;
	}

	/**
	 * @return the createTime
	 */
	public Date getCreateTime() {
		return createTime;
	}

	/**
	 * @param createTime
	 *            the createTime to set
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	/**
	 * @return the goalId
	 */
	public String getGoalId() {
		return goalId;
	}

	/**
	 * @param goalId
	 *            the goalId to set
	 */
	public void setGoalId(String goalId) {
		this.goalId = goalId;
	}

	

	/**
	 * @return the cardId
	 */
	public Integer getCardId() {
		return cardId;
	}

	/**
	 * @param cardId the cardId to set
	 */
	public void setCardId(Integer cardId) {
		this.cardId = cardId;
	}

	/**
	 * @return the type
	 */
	public Integer getType() {
		return type;
	}

	/**
	 * @param type
	 *            the type to set
	 */
	public void setType(Integer type) {
		this.type = type;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "Card [fromId=" + fromId + ", fromName=" + fromName
				+ ", content=" + content + ", createTime=" + createTime
				+ ", goalId=" + goalId + ", cardId=" + cardId + ", type="
				+ type + ", fromType=" + fromType + ", title=" + title
				+ ", deleteFlag=" + deleteFlag + "]";
	}

}
